package com.wicket.okrbff.biz.service.dto.common;


import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffTopPlanTargetCycleMenuDto
 * @使用场景
 */
@Data
public class BffTopPlanTargetCycleMenuDto
        extends PagedDto
        implements Serializable {

    /**
     * 被评对象目标周期ID:
     */
    @ApiModelProperty("空间周期下目标ID")
    private String evaObjTargetCycleId;

    /**
     * 被评对象内容表主键ID:
     */
    @ApiModelProperty("空间ID")
    private String evaObjEntityId;

    /**
     * 被评对象内容表类型编码:
     */
    @ApiModelProperty("被评对象内容表类型编码")
    private String evaObjTableTypeCode;

    /**
     * 被评对象类型编码:
     */
    @ApiModelProperty("被评对象类型编码")
    private String evaObjTypeCode;

    /**
     * 树类型编码:
     */
    @ApiModelProperty("树类型编码")
    private String treeTypeCode;

    /**
     * 目标周期来自内容ID:
     */
    @ApiModelProperty("目标ID")
    private String targetCycleContentId;

    /**
     * 周期ID:
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 是否父周期:
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期:
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期:
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 周期名称:
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 目标周期简称:
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 周期类型名称:
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 周期类型标识:
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 目标周期任务进展状态:
     */
    @ApiModelProperty("目标周期任务进展状态")
    private String taskStatus;

    /**
     * 冗余目标ID:
     */
    @ApiModelProperty("冗余目标ID")
    private String targetId;

    /**
     * 冗余评价模板ID:
     */
    @ApiModelProperty("冗余评价模板ID")
    private String evaluationTemplateId;
/**
     * 冗余规划类型 GENERAL_PLANNING:常规规划 THEMATIC_PLANNING:专题规划
     */
    @ApiModelProperty("冗余规划类型")
    private String	 planningType;
/**
     * 目标周期名称
     */
    @ApiModelProperty("目标周期名称")
    private String	 targetCycleName;

    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String	 cycleNumberShortName;

    /**
     * 周期类型实例标识
     */
    @ApiModelProperty("周期类型实例标识")
    private String	 cycleTypeInstanceCode;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffTopPlanTargetCycleMenuDto that = (BffTopPlanTargetCycleMenuDto) o;
      return  evaObjTargetCycleId == that.evaObjTargetCycleId&&evaObjEntityId == that.evaObjEntityId&&evaObjTableTypeCode == that.evaObjTableTypeCode&&evaObjTypeCode == that.evaObjTypeCode&&treeTypeCode == that.treeTypeCode&&targetCycleContentId == that.targetCycleContentId&&cycleId == that.cycleId&&isParentCycle == that.isParentCycle&&isSubCycle == that.isSubCycle&&isMetaphase == that.isMetaphase&&cycleStandardName == that.cycleStandardName&&cyclelAlias == that.cyclelAlias&&cycleTypeName == that.cycleTypeName&&cycleTypeCode == that.cycleTypeCode&&taskStatus == that.taskStatus&&targetId == that.targetId&&evaluationTemplateId == that.evaluationTemplateId&&planningType == that.planningType&&targetCycleName == that.targetCycleName&&cycleNumberShortName == that.cycleNumberShortName&&cycleTypeInstanceCode == that.cycleTypeInstanceCode;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaObjTargetCycleId,evaObjEntityId,evaObjTableTypeCode,evaObjTypeCode,treeTypeCode,targetCycleContentId,cycleId,isParentCycle,isSubCycle,isMetaphase,cycleStandardName,cyclelAlias,cycleTypeName,cycleTypeCode,taskStatus,targetId,evaluationTemplateId,planningType,targetCycleName,cycleNumberShortName,cycleTypeInstanceCode);
    }

}
